﻿using CatUtils.Utils.SpecialUtils.View;
using Image_Porn_Identification.UserTool;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Image_Porn_Identification.UserView
{
    internal class ViewManger
    {
        public static class Name
        {
            /// <summary>
            /// 图片处理
            /// </summary>
            public const string ImgClear = "图片处理";

            /// <summary>
            /// API配置
            /// </summary>
            public const string Setting = "程序配置";

            /// <summary>
            /// 主列表
            /// </summary>
            public static List<string> MainList = new List<string>() { ImgClear, Setting };
        }

        public static void Replace(GroupBox MainGroupbox, string Mode)
        {
            switch (Mode)
            {
                case Name.ImgClear:
                    Groupboxhelper.Replace(MainGroupbox, new ImageControl());
                    break;

                case Name.Setting:
                    Groupboxhelper.Replace(MainGroupbox, new Setting());
                    break;

                default:
                    break;
            }
        }
    }
}